package com.tyun.modules.cms.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * 文章
 *
 * @author tao cong cong
 * @create 2018/6/22 上午7:03
 */
@TableName("cms_article")
public class CmsArticle implements Serializable {
	private static final long serialVersionUID = 1L;
	
	/**
	 * ID
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 标题
	 */
	private String title;
	
	/**
	 * 作者
	 */
	private String author;

	/**
	 * 转载来源
	 */
	private String fromurl;

	/**
	 * 封面图
	 */
	private String image;

	/**
	 * 关键字
	 */
	private String keywords;

	/**
	 * 简介
	 */
	private String description;

	/**
	 * 类型(1:普通,2:热门...)
	 */
	private Byte type;

	/**
	 * 是否允许评论(0:不允许,1:允许)
	 */
	private Byte allowcomments;

	/**
	 * 状态(-1:不通过,0未审核,1:通过)
	 */
	private Byte status;

	/**
	 * 内容
	 */
	private String content;

	/**
	 * 阅读数量
	 */
	private Integer readnumber;

	/**
	 * 置顶等级
	 */
	private Integer top;

	/**
	 * 排序
	 */
	private Long orders;

	private String createUser;

	private Date createTime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getFromurl() {
		return fromurl;
	}

	public void setFromurl(String fromurl) {
		this.fromurl = fromurl;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Byte getType() {
		return type;
	}

	public void setType(Byte type) {
		this.type = type;
	}

	public Byte getAllowcomments() {
		return allowcomments;
	}

	public void setAllowcomments(Byte allowcomments) {
		this.allowcomments = allowcomments;
	}

	public Byte getStatus() {
		return status;
	}

	public void setStatus(Byte status) {
		this.status = status;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getReadnumber() {
		return readnumber;
	}

	public void setReadnumber(Integer readnumber) {
		this.readnumber = readnumber;
	}

	public Integer getTop() {
		return top;
	}

	public void setTop(Integer top) {
		this.top = top;
	}

	public Long getOrders() {
		return orders;
	}

	public void setOrders(Long orders) {
		this.orders = orders;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}
